package org.maruero.ejb.entity;

import java.io.Serializable;

import javax.persistence.Entity;

@Entity
public class Book implements Serializable {

	private static final long serialVersionUID = 809756143234218234L;
	
	private String title;
	private String author;
	private int year;
	
	public Book(){}
	
	public Book( String title , String author , int year ){
		this.title = title;
		this.author = author;
		this.year = year;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getAuthor() {
		return author;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getYear() {
		return year;
	}	
}
